<?php

/**
 * Yii view activity
 *
 * @author luubk
 * @since Jan 14, 2013 - 9:32:50 PM
 */
$this->widget('DataTable', array(
    'model' => $this->model,
    'title' => $this->pageTitle,
    'fieldSearch' => 'object_name',
    'noAction' => TRUE,
    'columns' => array(
        'admin.username',
        array(
            'name' => Yii::t('activity', 'Time'),
            'value' => 'MyUtil::timeToString($data->created_at)',
        ),
        array(
            'name' => Yii::t('activity', 'Type'),
            'value' => 'Yii::t("activity", $data->type)',
        ),
        array(
            'name' => Yii::t('activity', 'Object'),
            'value' => 'Yii::t($data->object_type, $data->object_type)',
        ),
        'object_name',
        'ip',
    ),
));
